package com.hu.juc.day01.T3;

import java.util.concurrent.TimeUnit;

public class Phone {
    public static synchronized void sendEmail() {
        //try { TimeUnit.SECONDS.sleep(4);} catch (InterruptedException e) {e.printStackTrace();}
        System.out.println("***sendEmail***");
    }

    public static synchronized void sendMSG() {
        System.out.println("***sendMSG***");
    }

    public void hello() {
        System.out.println("***hello***");
    }

}
